#pragma once
#include "base.hpp"


void PrintStd(std::string);

std::string GetStdInput();

class Hospital:public HouseBase{
public:
	bool PassFunction(User& user,std::vector<Land>& map,std::unordered_map<int,User*>& users) override{
		if (user.GetStatus()==UserStatus::Hospital&&user.GetStopNum()!=BOOM_DAY) {
			user.SetStopNum(BOOM_DAY);
			PrintStd("欢迎住院,暂停:"+std::to_string(BOOM_DAY-1));
		}else {
			PrintStd("欢迎来到医院");
		}
		return false;
	};
	void Clear() override{};
	char MapChar() override{
		return 'H';
	};
	Color MapColor() override{
		return Green;
	};
};
